const mongoose = require('mongoose')
const Schema = mongoose.Schema;
const db = require('./db');

const userSchema = new Schema({
    name: {
        type: String,
        required: true
    },
    password: {
        type: String,
        required: true
    },
    imgsrc: {
        type: String,
    }
})

const users = db.model('user', userSchema);

module.exports = users;